<template>
    <div>
      <slot></slot>
    </div>
</template>

<script>

export default {
  name: 'lendBanner',
  data() {
    return {}
  },
  mounted() {
    this.endBannerInit()
  },
  methods:{
    endBannerInit(){
      const element = document.getElementsByClassName('layout-content-right')[0]
      const endBanner = document.getElementById('endBanner')
      if(element&&endBanner){
        const left = element.offsetLeft
        const width = element.offsetWidth
        endBanner.style.cssText = `left:${left}px;width:${width}px`
      }
    }
  }
}
</script>
